package com.xxx.borrow.ui.loan;

import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.ViewFlipper;

import com.xxx.borrow.ConfigClass;
import com.xxx.borrow.R;
import com.xxx.borrow.base.fragment.BaseFragment;
import com.xxx.borrow.ui.loan.activity.BorrowActivity;
import com.xxx.borrow.ui.loan.activity.BorrowingRecordActivity;
import com.xxx.borrow.ui.loan.activity.MyPaymentActivity;
import com.xxx.borrow.ui.loan.activity.MyTeamActivity;

import butterknife.BindView;
import butterknife.OnClick;

public class LoanFragment extends BaseFragment {
    @BindView(R.id.main_home_view_flipper)
    ViewFlipper mViewFlipper;
    @BindView(R.id.loan_amount)
    TextView mCount;
    @BindView(R.id.loan_status)
    TextView mStatus;
    @BindView(R.id.loan_activate)
    Button mActivate;
    @BindView(R.id.loan_Borrow)
    Button mBorrow;
    @BindView(R.id.re_status)
    RelativeLayout mNote;

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_loan;
    }

    @Override
    protected void initData() {

    }

    @OnClick({R.id.my_loan_team, R.id.loan_activate, R.id.loan_borrow_click, R.id.loan_also_click, R.id.loan_Borrow})
    public void OnClick(View view) {
        switch (view.getId()) {
            case R.id.loan_borrow_click://我要还款
                MyPaymentActivity.actionStart(getActivity());
                break;
            case R.id.loan_also_click://借款记录
                BorrowingRecordActivity.actionStart(getActivity());
                break;
            case R.id.my_loan_team://我的团队
                MyTeamActivity.actionStart(getActivity());
                break;
            case R.id.loan_activate://激活信用额度

                break;
            case R.id.loan_Borrow://马上借币
                BorrowActivity.actionStart(getActivity());
                break;
        }
    }
}
